package com.qf.mvc2203.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

//后端控制器需要添加Controller注解
@Controller
@RequestMapping("/user")//该注解影响核心前端控制器的url匹配规则
public class hiController {
    @RequestMapping("/get")
    public String get(){
        System.out.println("hiController");
        return "/hi.html";
    }

}
